import request from '@/utils/request'

// 查询项目列表
export function listProject(query) {
    return request({
        url: '/project/list',
        method: 'get',
        params: query
    })
}

// 查询项目详细
export function getProject(projectId) {
    return request({
        url: '/project/' + projectId,
        method: 'get'
    })
}

// 添加项目
export function insertProject(data) {
    return request({
        url: '/project',
        method: 'put',
        data: data
    })
}
// 修改项目
export function updateProject(data) {
    return request({
        url: '/project/update',
        method: 'put',
        data: data
    })
}

// 删除项目
export function delProject(projectId) {
    return request({
        url: '/project/' + projectId,
        method: 'delete'
    })
}

export function listContract(){
    return request({
        url:'/project/contractcode',
        method:'get'
    })
}

export function listLeader(){
    return request({
        url:'/project/leader',
        method:'get'
    })
}